package cate.common.table.pvp.ladder;

import cate.common.table.ESheet;
import org.apache.commons.collections4.CollectionUtils;

import java.util.Objects;

public class LadderBaseSheet extends ESheet<LadderBaseRow> {
    @Override
    public String getSheetName() {
        return "天梯赛挑战基础";
    }

    public String getReward(boolean isWin) {
        if (CollectionUtils.isEmpty(getList())) {
            return null;
        }
        LadderBaseRow baseRow = getList().get(0);
        return isWin ? baseRow.winRwdStr : baseRow.failRwdStr;
    }
}
